home *** CD-ROM | disk | FTP | other *** search
/ Qoole for Quake / Qoole for Quake (USA) / Qoole for Quake (USA).bin / Tutorial / HTML / QUBE.ZIP / SRC / CURS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-05  |  1.1 KB  |  49 lines

  1.  
  2. #ifndef _CURS_H_
  3. #define _CURS_H_
  4.  
  5. /*
  6.  *  General-purpose cursor control routines for QBSP, VIS, and LIGHT.
  7.  *  These are used so that cursor control can be done compatibly
  8.  *  with other architectures (namely UNIX).  This version implements
  9.  *  cursor control with CONIO.H (available with Turbo C and with DJGPP).
  10.  */
  11.  
  12. void InitText(void);
  13. void MoveCurs(int x, int y);
  14. void GetCurs(int *x, int *y);
  15. void SetForeColor(int color);
  16. void SetBackColor(int color);
  17. void CPrintf(char *format, ...);
  18. void RingBell(void);
  19. void FillBox(int x, int y, int width, int height, char c);
  20. void DrawBox(int x, int y, int width, int height);
  21. void DrawFilledBox(int x, int y, int width, int height);
  22. void DrawHLine(int x, int y, int length);
  23. void DrawVLine(int x, int y, int length);
  24. int IsKey(void);
  25. int WaitKey(void);
  26. int GetKey(void);
  27. void HideCurs(void);
  28. void ShowCurs(void);
  29.  
  30. extern int ScrnWidth, ScrnHeight;
  31.  
  32. enum {
  33.     ANSI_BLACK,
  34.     ANSI_RED,
  35.     ANSI_GREEN,
  36.     ANSI_YELLOW,
  37.     ANSI_BLUE,
  38.     ANSI_MAGENTA,
  39.     ANSI_CYAN,
  40.     ANSI_WHITE,
  41. };
  42.  
  43. #define ANSI_VIOLET ANSI_MAGENTA
  44. #define ANSI_PURPLE ANSI_MAGENTA
  45. #define ANSI_AQUA ANSI_CYAN
  46.  
  47. #endif
  48.  
  49.